package com.scrollpickerview;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity
{
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		new TimePicker(this, new TimePicker.ResultCallBack()
		{
			@Override
			public void choosed(String year, String month, String day)
			{
				Toast.makeText(MainActivity.this, year + "-" + month + "-" + day, Toast.LENGTH_LONG).show();
			}
		}).show();
	}
}
